package main

import (
	"fmt"
	"log"
	"net/http"
	"ws_server"
)

func main() {
	fmt.Println("server start.")
	http.HandleFunc("/", ws_server.HomeHandler)
	http.HandleFunc("/ws", ws_server.WsHandler)
	if err := http.ListenAndServe(":9999", nil); err != nil {
		log.Fatalf("listenAndSeve: %v", err)
	}
}
